from manim import *
from bubble import *
from pi_creature import *
from pi_creature_animations import *
from pi_creature_scene import *

# from pi_creature import *
# from pi_creature_scene import (
#     PiCreatureScene,
#     MortyPiCreatureScene,
#     TeacherStudentsScene,
# )


class TeacherExample(Scene):
    def construct(self):
        pi = PiCreature(start_corner=DL)
        sq = Square().next_to(pi, UP)
        sq_eyes = Eyes(sq)

        self.add(
            pi,
            sq_eyes,
            sq,
        )

        self.play(pi.change("thinking"))
        self.play(Blink_pi(pi))
        # self.play(Create(bub))
        # self.play(pi.says("hello!HEllo!!!", look_at=sq))
        # self.remove(pi.bubble)
        # # self.play(PiCreatureBubbleIntroduction(pi, content="Hello!", look_at=sq))
        # self.play(pi.thinks("why?"))

        # d = SVGMobject("PiCreature/PiCreatures_plain.svg")
        # d.submobjects[0].reverse_direction()
        # d.submobjects[1].reverse_direction()

        # d2 = SVGMobject("PiCreature/PiCreatures_happy.svg").next_to(d, DOWN)
        # self.play(Create(d.submobjects[1]), Create(d.submobjects[0]))
        # self.play(Create(d2.submobjects[1]), Create(d2.submobjects[0]))


if __name__ == "__main__":
    from os import system

    system("manim -pqm  {}   --disable_caching  ".format(__file__))
